#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 
#include <math.h> 
#include <ctype.h> 
#include <time.h> 
#include <assert.h>


double F(double x)
{
	double y = 2 * pow(x, 3) - 4 * pow(x, 2) + 3 * x - 6;
	return y;
}
int main()
{
	double left = -10;
	double right = 10;
	double mid = left + (right - left) / 2;
	while (fabs(F(mid)) > 1e-3)
	{
		if (F(mid) > 0)
		{
			right = mid;
		}

		if (F(mid) < 0)
		{
			left = mid;
		}
		mid = left + (right - left) / 2;
	}

	printf("%.3f\n", mid);
	return 0;
}